package com.ash.domain;

/**
 * @encoding : UTF-8
 * @Time : 2020/12/3 21:00
 * @Author : Chen Chao
 * @File : connection.com.ash.domain.Student.java
 * @Software : IntelliJ IDEA
 * @since : 1.8
 */
public class Student {
    private Integer id;
    /**之所以用包装类型，因为包装类型可以表示null和0两种情况*/
    private String name;
    private Integer age;

    public Student() {
    }

    public Student(Integer id, String name, Integer age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
